﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MarketOnlineDAO;
using MarketOnlineDTO;
using System.Collections;

namespace MarketOnlineBUS
{
    public class HoaDonBUS
    {
        public Boolean ThemHoaDon(HoaDonDTO dto)
        {
            return new HoaDonDAO().ThemHoaDon(dto);
        }

        public List<HoaDonDTO> LayDanhSachHoaDon()
        {
            return new HoaDonDAO().LayDanhSachHoaDon();
        }

        public HoaDonDTO LayHoaDon(int MaHoaDon)
        {
            return new HoaDonDAO().LayHoaDon(MaHoaDon);
        }

        public int LayMaHoaDonMax()
        {
            return new HoaDonDAO().LayMaHoaDonMax();
        }


        public Boolean CapNhatHoaDon(HoaDonDTO dto)
        {
            return new HoaDonDAO().CapNhatHoaDon(dto);

        }

        public Boolean XoaHoaDon(int MaChiTietHoaDon)
        {
            return new HoaDonDAO().XoaHoaDon(MaChiTietHoaDon);
        }
        
    }
}
